package com.deepwiki.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * OpenAI配置类
 */
@Configuration
@ConfigurationProperties(prefix = "openai")
public class OpenAIConfig {

    /**
     * OpenAI API密钥
     */
    private String apiKey;

    /**
     * API端点
     */
    private String endpoint = "https://api.openai.com/v1";

    /**
     * 使用的模型
     */
    private String model = "gpt-4";

    /**
     * 最大token数
     */
    private Integer maxTokens = 4000;

    /**
     * 温度参数
     */
    private Double temperature = 0.3;

    // Getters and Setters
    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public Integer getMaxTokens() {
        return maxTokens;
    }

    public void setMaxTokens(Integer maxTokens) {
        this.maxTokens = maxTokens;
    }

    public Double getTemperature() {
        return temperature;
    }

    public void setTemperature(Double temperature) {
        this.temperature = temperature;
    }
} 